home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / sun / rlelib / makefile.src < prev    next >
Encoding:
Makefile  |  1993-08-23  |  1.7 KB  |  67 lines

  1. #
  2. # makefile for user-contributed/lbl/rlelib
  3. #
  4.  
  5. OBJS = \
  6.     Runput.o buildmap.o cmd_name.o colorquant.o dither.o \
  7.     float_to_exp.o inv_cmap.o rle_addhist.o rle_cp.o rle_getcom.o \
  8.     rle_getraw.o rle_getrow.o rle_getskip.o rle_global.o \
  9.     rle_open_f.o rle_putcom.o rle_putraw.o rle_putrow.o \
  10.     rle_raw_alc.o rle_rawrow.o rle_row_alc.o scanargs.o \
  11.     vaxshort.o
  12.  
  13. LOCALINC = -I$(CCS_ROOT)/include -DVOID_STAR
  14. LIBNAME = librle.a
  15. RI = ../include
  16. LIBFLAG = -DFITS_IMAGE -DHIPS_IMAGE -DRLE_IMAGE -DCOMMON_TOOL
  17.  
  18. default:    $(LIBNAME)
  19. install:    $(LIBNAME)
  20.  
  21. .c.o:
  22.     $(COMPILEc) $(LOCALINC) $*.c
  23.     @-ld -x -r $*.o
  24.     @mv a.out $*.o
  25.  
  26. $(LIBNAME): $(OBJS)
  27.     @rm -f $(LIBNAME)
  28.     ar cr $(LIBNAME) `$(LORDER) $(OBJS) | $(TSORT)`;
  29.     mv $(LIBNAME) $(LIBDIR)
  30.     $(RANLIB) $(LIBDIR)/$(LIBNAME)
  31.     @touch $(LIBNAME)
  32.  
  33. clean:
  34.     rm -f $(OBJS) $(LIBNAME)
  35. clean-all:    clean_all
  36.  
  37. pristine:
  38.     rm -f $(OBJS) $(LIBNAME) $(LIBDIR)/$(LIBNAME)
  39.  
  40. man:
  41.  
  42. doc:
  43.  
  44. # Make all objects depend on rle_config.h, even if they really don't.
  45. # This forces a recompile whenever a reconfiguration happens.
  46. $(OBJS):${RI}/rle_config.h
  47.  
  48. # Dependencies on .h files:
  49. # DO NOT DELETE THIS LINE
  50.  
  51. Runput.o: ${RI}/rle.h ${RI}/rle_code.h ${RI}/rle_put.h
  52. buildmap.o: ${RI}/rle.h
  53. float_to_exp.o: ${RI}/rle.h
  54. rle_addhist.o: ${RI}/rle.h
  55. rle_cp.o: ${RI}/rle.h ${RI}/rle_code.h ${RI}/rle_put.h
  56. rle_getcom.o: ${RI}/rle.h
  57. rle_getraw.o: ${RI}/rle.h ${RI}/rle_raw.h
  58. rle_getrow.o: ${RI}/rle.h ${RI}/rle_code.h
  59. rle_getskip.o: ${RI}/rle.h ${RI}/rle_code.h
  60. rle_global.o: ${RI}/rle.h ${RI}/rle_put.h
  61. rle_putcom.o: ${RI}/rle.h
  62. rle_putraw.o: ${RI}/rle.h ${RI}/rle_put.h ${RI}/rle_raw.h
  63. rle_putrow.o: ${RI}/rle.h ${RI}/rle_put.h
  64. rle_raw_alc.o: ${RI}/rle.h ${RI}/rle_raw.h
  65. rle_rawrow.o: ${RI}/rle.h ${RI}/rle_raw.h
  66. rle_row_alc.o: ${RI}/rle.h
  67.